<extend name='Block/Admin_public'/>
<block name="content" >
      
    {:form('所属栏目','arco_id','select',$list['arco_id'],$arcolist)}
    {:form('所属分类','arc_id','select',$list['arc_id'])}
    {:form('文章标题','ar_tittle','text',$list['ar_tittle'])}
    {:form('文章缩略图','ar_thumbnail','img',$list['ar_thumbnail'])}
    {:form('文章摘要','ar_abstract','text',$list['ar_abstract'])}
    {:form('文章来源','ar_from','text',$list['ar_from'])}
    {:form('文章内容','ar_content','ueditor',$list['ar_content'])}
    {:form('排序','ar_order','text',$list['ar_order'])}
    
    {:form('分类状态','ar_status','text',$list['ar_status'])}

    
    {:form('提交','','submit')}	
<script>
$(document).ready(function(){
	get_arc(); 
	$("select[name='arco_id']").change(function(){get_arc();});  
});
//获取文章分类
function get_arc(){
       var arco_id=$("select[name='arco_id']").val();
	   var url="{:U('get_arc')}";
	   $.post(url,{arco_id:arco_id},function(data){
          	 $("select[name='arc_id']").html(data); 
          	 console.log(data) 

	   });
}
</script>	     
</block>